<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>log collector</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <script>
        $(document).ready(function () {
            $("button").click(function () {
                let action = $(this).val();
                let job_code = $("#job_code").val();
                let user_id = "uid1"
                let act_time = new Date().getTime()
                console.log(job_code)
                //发送请求
                $.post("http://localhost/t1", {
                    action: action,
                    job_code: job_code,
                    user_id: user_id,
                    act_time: act_time
                }, function (data, status) {
                    alert("Data: " + data + "nStatus: " + status);
                });
            });
        });
    </script>
</head>
<body>
<div style="padding: 100px 100px 10px;">
    <form class="bs-example bs-example-form" role="form">
        <div class="input-group">
            <span class="input-group-addon">公司编码</span>
            <input type="text" class="form-control" id="job_code" placeholder="lagou01">
        </div>
        <br>
        <!-- 按钮组 -->
        <button type="button" class="btn btn-default" value="click">点击</button>
        <button type="button" class="btn btn-primary" value="job_collect">收藏</button>
        <button type="button" class="btn btn-success" value="cv_send">投简历</button>
        <button type="button" class="btn btn-info" value="cv_upload">上传简历</button>
    </form>
</div>


</body>
</html>